home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12013 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  885 b 

  1. Path: lrz-muenchen.de!news
  2. From: watzka@stat.uni-muenchen.de (Kurt Watzka)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: beginner question
  5. Date: 28 Mar 1996 10:04:37 GMT
  6. Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
  7. Distribution: world
  8. Message-ID: <4jdo7l$de2@sparcserver.lrz-muenchen.de>
  9. References: <4jc3sr$1ggu@uvaix3e1.comp.UVic.CA>
  10. NNTP-Posting-Host: sun2.lrz-muenchen.de
  11.  
  12. dtorgers@gulf.uvic.ca (Damon Torgerson) writes:
  13.  
  14. >Would some one please esplain to me what a structure tag is and what it is 
  15. >used for?
  16.  
  17.   It's the "name" of a struct. It is used to refer to the strcut data type
  18.  
  19.   struct FOO
  20.   {
  21.     int bar;
  22.   }
  23.  
  24. FOO is the "struct tag" of that struct, i.e. you can use it to declare
  25. variables of that type as in
  26.  
  27.   struct FOO s;
  28.  
  29. Kurt
  30. --
  31. | Kurt Watzka                             Phone : +49-89-2180-6254
  32. | watzka@stat.uni-muenchen.de
  33. | ua302aa@sunmail.lrz-muenchen.de
  34.